-- GENERATED SPELL FOR [Sunseeker Gene-Splicer] --


function spell0_19507(pUnit, Event) --@Death & Decay,n/a--
pUnit:FullCastSpellOnTarget(34642,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19507', 12000, 1)
end

function spell1_19507(pUnit, Event) --@Death & Decay,n/a--
pUnit:FullCastSpellOnTarget(39347,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19507', 12000, 1)
end

function Sorts_19507(pUnit, Event)
local choix_sorts_19507 = math.random(0, 1)
if choix_sorts_19507 == 0 then
pUnit:RegisterEvent('spell0_19507', 1, 1)
end
if choix_sorts_19507 == 1 then
pUnit:RegisterEvent('spell1_19507', 1, 1)
end
end

function mob19507_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19507', math.random(1500, 3000), 1)
end

function mob19507_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19507_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19507_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19507, 1, 'mob19507_Action')
RegisterUnitEvent(19507, 2, 'mob19507_Leave')
RegisterUnitEvent(19507, 3, 'mob19507_Kill')
RegisterUnitEvent(19507, 4, 'mob19507_Die')
